package com.archgeek.java.nio;

import org.junit.Test;

import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;

/**
 * @author pizhihui
 * @date 2023-03-31 14:15
 */
public class FileChannelTest {


    @Test
    public void testFileChannel() {

        Path path = Paths.get("");
        try {
            FileChannel fileChannel = FileChannel.open(path, StandardOpenOption.APPEND);



        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }





}
